import service from '@/utils/request'

// @Tags CusUser
// @Summary 创建cusUser表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusUser true "创建cusUser表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusUser/createCusUser [post]
export const createCusUser = (data) => {
  return service({
    url: '/cusUser/createCusUser',
    method: 'post',
    data
  })
}

// @Tags CusUser
// @Summary 删除cusUser表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusUser true "删除cusUser表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusUser/deleteCusUser [delete]
export const deleteCusUser = (params) => {
  return service({
    url: '/cusUser/deleteCusUser',
    method: 'delete',
    params
  })
}

// @Tags CusUser
// @Summary 批量删除cusUser表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusUser表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusUser/deleteCusUser [delete]
export const deleteCusUserByIds = (params) => {
  return service({
    url: '/cusUser/deleteCusUserByIds',
    method: 'delete',
    params
  })
}

// @Tags CusUser
// @Summary 更新cusUser表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusUser true "更新cusUser表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusUser/updateCusUser [put]
export const updateCusUser = (data) => {
  return service({
    url: '/cusUser/updateCusUser',
    method: 'put',
    data
  })
}

// @Tags CusUser
// @Summary 用id查询cusUser表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusUser true "用id查询cusUser表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusUser/findCusUser [get]
export const findCusUser = (params) => {
  return service({
    url: '/cusUser/findCusUser',
    method: 'get',
    params
  })
}

// @Tags CusUser
// @Summary 分页获取cusUser表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusUser表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusUser/getCusUserList [get]
export const getCusUserList = (params) => {
  return service({
    url: '/cusUser/getCusUserList',
    method: 'get',
    params
  })
}
